package org.icosagon.ui;

import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JSplitPane;

import org.icosagon.core.character.Character;
import org.icosagon.ui.character.GeneralPanel;

/**
 * 
 */
public class CharacterPanel extends JSplitPane {
    private Character character = null;

    public CharacterPanel(Character c) {
        this.character = c;

        this.setLeftComponent(new NavigationPanel());
        this.setRightComponent(new GeneralPanel(this.character));
    }

    private class NavigationPanel extends JPanel {
        private JButton general, skills, inventory, spells, feats;

        public NavigationPanel() {
            this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));

            this.general = new JButton("General");
            this.skills = new JButton("Skills");
            this.inventory = new JButton("Inventory");
            this.feats = new JButton("Feats");
            this.spells = new JButton("Spells");

            this.add(general);
            this.add(skills);
            this.add(feats);
            this.add(spells);
            this.add(inventory);
        }
    }
}